<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生知识管理系统</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .container {
            background: white;
            padding: 40px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            text-align: center;
            max-width: 600px;
            width: 90%;
        }
        h1 {
            color: #333;
            margin-bottom: 20px;
            font-size: 2.5em;
        }
        .welcome-message {
            color: #666;
            font-size: 1.2em;
            margin-bottom: 30px;
            line-height: 1.6;
        }
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }
        .feature {
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #667eea;
        }
        .feature h3 {
            color: #333;
            margin-bottom: 10px;
        }
        .feature p {
            color: #666;
            margin: 0;
        }
        .nav-links {
            margin-top: 30px;
        }
        .nav-links a {
            display: inline-block;
            margin: 0 10px;
            padding: 12px 24px;
            background: #667eea;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: background 0.3s;
        }
        .nav-links a:hover {
            background: #5a6fd8;
        }
        .status {
            margin-top: 20px;
            padding: 15px;
            background: #d4edda;
            border: 1px solid #c3e6cb;
            border-radius: 5px;
            color: #155724;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>🎓 学生知识管理系统</h1>
        
        <div class="welcome-message">
            <p th:if="${message}" th:text="${message}">欢迎使用学生知识管理系统</p>
            <p th:unless="${message}">欢迎使用学生知识管理系统！这是一个专为学生设计的知识管理平台。</p>
        </div>
        
        <div class="features">
            <div class="feature">
                <h3>📚 知识管理</h3>
                <p>整理和管理您的学习资料</p>
            </div>
            <div class="feature">
                <h3>📝 文章发布</h3>
                <p>分享您的学习心得和经验</p>
            </div>
            <div class="feature">
                <h3>💬 互动交流</h3>
                <p>与其他学习者交流讨论</p>
            </div>
            <div class="feature">
                <h3>🏆 积分系统</h3>
                <p>通过学习获得积分奖励</p>
            </div>
        </div>
        
        <div class="nav-links">
            <a href="/login">登录</a>
            <a href="/register">注册</a>
            <a href="/about">关于我们</a>
        </div>
        
        <div class="status">
            <strong>✅ 系统状态：</strong> MySQL数据库连接正常，系统运行在端口 8083
        </div>
    </div>
</body>
</html>